firstNotNullOrNull

fun <T : Any> Array<out T>.firstNotNullOrNull(): T?(source)

Returns the first non-null element or null otherwise.